#include"Udpserver.hpp"
#include<memory>
#include<functional>


    int main(int argc,char*argv[])
{
    if(argc!=2)
    {
        std::cout<<"缺少参数"<<std::endl;
        exit(2);
    }

    uint16_t port=std::stoi(argv[1]);
    std::unique_ptr<Udpserver> ser=std::make_unique<Udpserver>(port);
    ser->Init();
    ser->Start();


    return 0;
    
}
